<?php
include_once("../globalno.php");
header("Content-type: text/html;charset=GB2312");

$sql = "select  mb_id from dmbcfg   where 1=1";
$sql.=" and login_no='".$_REQUEST['login_no']."'";
$sql.=" and begin_date='".$_REQUEST['yearth']."'";
$sql.=" and ot_code='".$_REQUEST['ot_code']."'";

$sql.=" limit 1";

$tnarr=$db->get_sql_row($sql);

if(!empty($tnarr['mb_id'])){
   echo"1";
}else{
   echo"2";
}
?>